package com.ssm.design.chain.handler.v2;

import com.ssm.design.chain.context.OrderHandleContext;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Objects;

@Service
public class Node01Handler extends AbstractHandlerV2<List<Object>> {

    @Override
    protected boolean isThisNodeDeal(OrderHandleContext context, List<Object> object) {
        return Objects.equals("该我干活", "该我干活");
    }


    @Override
    protected void doHandle(List<Object> integer) {
        System.out.println("=========> Node01Handler ");
    }
}
